package cn.etynit.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author etyn
 * @since 2022-12-12
 */
@TableName("visitor_log")
public class VisitorLog extends Model<VisitorLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 访客姓名
     */
    private String name;
    /**
     * 访客电话
     */
    private String phone;
    /**
     * 进入时间
     */
    private Date entranceTime;
    /**
     * 离开时间
     */
    private Date leaveTime;
    /**
     * 业主或家庭成员id
     */
    private Long userOrFamilyId;

    /**
     * 业主或家庭成员name
     */
    private String userOrFamilyName;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getEntranceTime() {
        return entranceTime;
    }

    public void setEntranceTime(Date entranceTime) {
        this.entranceTime = entranceTime;
    }

    public Date getLeaveTime() {
        return leaveTime;
    }

    public void setLeaveTime(Date leaveTime) {
        this.leaveTime = leaveTime;
    }

    public Long getUserOrFamilyId() {
        return userOrFamilyId;
    }

    public void setUserOrFamilyId(Long userOrFamilyId) {
        this.userOrFamilyId = userOrFamilyId;
    }

    public String getUserOrFamilyName() {
        return userOrFamilyName;
    }

    public void setUserOrFamilyName(String userOrFamilyName) {
        this.userOrFamilyName = userOrFamilyName;
    }
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "VisitorLog{" +
        ", id=" + id +
        ", name=" + name +
        ", phone=" + phone +
        ", entranceTime=" + entranceTime +
        ", leaveTime=" + leaveTime +
        ", userOrFamilyId=" + userOrFamilyId +
        ", userOrFamilyName=" + userOrFamilyName +
        "}";
    }
}
